package br.loja.util;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

import br.loja.enumerators.ConexaoEnum;

public class JPAUtil {

	private static EntityManagerFactory emf = Persistence
			.createEntityManagerFactory(ConexaoEnum.PERSISTENCE_UNIT
					.getValor());

	public static EntityManager getEntityManager() {
		return emf.createEntityManager();
	}
}
